﻿<UserControl x:Class="ExpressionMediaPlayer.OfflineDownloadProgressDialog" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:local="clr-namespace:ExpressionMediaPlayer;assembly=MediaPlayer"
           mc:Ignorable="d"
           d:DesignWidth="320" d:DesignHeight="240"
           >
    <Grid x:Name="LayoutRoot" Background="Transparent" >
    <Border BorderThickness="10" BorderBrush="#80000000" CornerRadius="15" Background="#EEFFFFFF" HorizontalAlignment="Center" VerticalAlignment="Center">
        <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
          <Grid>
            <TextBlock x:Name="textBlockDownloading" Margin="30 10 30 10" Text="Downloading content for offline playback" />          
            <TextBlock x:Name="textBlockPromptToFinish" Margin="30 10 30 10" Text="Click Finish to complete offline installation" Visibility="Collapsed"/>
            <TextBlock x:Name="textBlockErrorMessage" Margin="30 10 30 10" Text="" Visibility="Collapsed"/>
           </Grid>
        <Grid>
            <ProgressBar x:Name="progressBarOfflining" Margin="5" Width="200" Height="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
              <TextBlock x:Name="textBlockCount" Text="" />
              <TextBlock Text=" of " />
              <TextBlock x:Name="textBlockTotal" Text="" />
            </StackPanel>
          </Grid>
        <ProgressBar x:Name="progressBarThisFile" Margin="5" Width="200" Height="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <Button x:Name="buttonCompleteInstallation" Content="Finish" Click="Click_CompleteInstallation" Width="80" Height="30" Margin="10" IsEnabled="False"/>
            <Button x:Name="butonCancelOfflineDownload" Content="Cancel" Click="Click_CancelOfflineDownload" Width="80" Height="30" Margin="10" />
          </StackPanel>
        </StackPanel>
      </Border>
    </Grid>
</UserControl>
 